#ifndef KEYBOARD_H
#define KEYBOARD_H

#include <QFrame>
#include <QDebug>
#include "game.h"
#include "location.h"

namespace Ui {
    class Keyboard;
}

class Game;

class Keyboard : public QFrame
{
	Q_OBJECT
	QSize size_;
	QVector< QVector< Location* > > locs_;
	QVector< QPixmap* > pics_;
	Game* game_;

public:
	explicit Keyboard(Game*, QWidget *parent = 0);
	~Keyboard();
	QSize keyboardSize() { return size_; }
	int value(int i, int j){ return locs_[i][j]->value(); }

public slots:
	void updateLocation( Location* );

signals:
	void keyboardUpdated(Keyboard*);

private:
    Ui::Keyboard *ui;
};

#endif // KEYBOARD_H
